<include file="Public/header" title="项目列表" />
<style>
    .table th,
    .table td {
        text-align: center;
    }
    .table td>a {
        cursor: pointer;
    }
</style>
<div id="page-wrapper">
    <div class="row">
        <div class="col-md-6">
            <a href="{:U('project/add')}" class="btn btn-success">添加项目</a>
        </div>
        <div class="col-md-6">
            <!-- <form action="{:U('project/index')}" method="post">
                <div class="form-group input-group">
                    <input type="text" class="form-control" name="key" placeholder="输入用户名或者邮箱关键词搜索">
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                    </span>
                </div>
            </form> -->
        </div>
    </div>
<!-- 项目列表 -->
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>项目名称</th>
                <th>创建时间</th>
                <th>可否用券</th>
                <th>收藏/热度</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name="model" item="v">
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.name}</td>
                    <td><?php echo date("Y-m-d",$v["createtime"]);?></td>
                    <td>
                        <if condition="$v['coupon'] eq 1">
                        是
                        <else/>
                        否
                        </if>
                    </td>
                    <td>{$v["hot"]}</td>
                    <td>
                        <a class="edit" href="{:U('project/update',array('id'=>$v['id']))}">编辑</a> 
                        <a class="del">删除</a>
                    </td>
                </tr>
            </foreach>
            <!-- <tr>
                <td>02</td>
                <td>大华锦绣华城</td>
                <td>2017-02-22</td>
                <td>是</td>
                <td>32</td>
                <td>
                    <a class="edit" href="http://localhost/ThinkAdmin-master/admin.php?m=Admin&c=project&a=update">编辑</a>
                    <a class="del">删除</a>
                </td>
            </tr> -->
        </tbody>
    </table>
</div>
<include file="Public/footer" />
<script>
    $(function () {



    });
</script>